package com.bw.service;

import com.bw.entity.Car;
import org.springframework.stereotype.Service;

@Service
public class CarServiceImpl implements CarService{
    @Override
    public Integer addCar(Car car) {
        System.out.println("CarServiceImpl 正在执行 addCar");

        return 1;
    }

    @Override
    public Integer updateCar(Car car) {
        System.out.println("CarServiceImpl 正在执行 updateCar");
        return 1;
    }

    @Override
    public Integer delCar(Car car) {

        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("CarServiceImpl 正在执行 delCar");
        return 1;
    }
}
